import { createApp } from 'vue';
import App from './App.vue';
import router from '@/router';
import store from '@/store';
import * as elementPlus from './plugins/elementPlus.js';
import globalComponent from '@/plugins/globalComponent';
import '@/assets/css/index.scss';
import 'nprogress/nprogress.css';
import './permission';

const app = createApp(App);
app.use(router);
app.use(store);
app.use(globalComponent);
/**
 * elementPlus
 * 挂载全局组件、插件
 */
elementPlus.components.forEach((component) => {
  app.component(component.name, component);
});
elementPlus.plugins.forEach((plugin) => {
  app.use(plugin);
});

app.mount('#app')
